package com.firstcare.android_dylibrary.network;

import com.android.volley.Request;
import com.rdxer.xxlibrary.HTTPUtils.URLInfo;

/**
 * Created by LXF on 16/6/8.
 */

public interface URLSet{

    URLInfo login = new URLInfo(Request.Method.POST,"/sc_sso/account/login.json");

    URLInfo regist = new URLInfo(Request.Method.POST,"/sc_sso/account/regist.json");

    URLInfo getHomeList = new URLInfo(Request.Method.GET,"/sc/v2/home/mylist.json");


    URLInfo getRegistCode = new URLInfo(Request.Method.GET,"/sc/v2/sms/r/{phone}.json");

    URLInfo registAccount = new URLInfo(Request.Method.POST,"/sc/v2/account/register.json");
    URLInfo getFotRegistCode = new URLInfo(Request.Method.GET,"/sc/v2/sms/f/{phone}.json");

    URLInfo fotPasswordAccount = new URLInfo(Request.Method.PUT,"/sc/account/f/password.json");


    URLInfo getProjectData = new URLInfo(Request.Method.POST,"/energy/mobile/sinoene/getProjectData.json");

    URLInfo getProjectExcel = new URLInfo(Request.Method.POST,"/energy/mobile/sinoene/getProjectExcel.json");

    URLInfo getProjectDatas = new URLInfo(Request.Method.POST,"/energy/mobile/sinoene/getProjectData.json");
    URLInfo getAlarmList = new URLInfo(Request.Method.POST,"/energy/mobile/Alarm/queryAlarm.json");
    URLInfo getProjectList = new URLInfo(Request.Method.POST,"/energy/mobile/Project/List.json");
    URLInfo putName = new URLInfo(Request.Method.PUT,"/sc/v2/account/update.json");
    URLInfo putPassword = new URLInfo(Request.Method.PUT,"/sc/account/password.json");
    URLInfo postSuggest = new URLInfo(Request.Method.POST,"/sc/suggest.json");
    URLInfo getCurveData  = new URLInfo(Request.Method.POST,"/energy/mobile/Device/queryCurveDevice.json");
    URLInfo getDefaultProjecttClient  = new URLInfo(Request.Method.POST,"/energy/mobile/Project/getDefaultProjecttClient.json");
    URLInfo postImgUpdata = new URLInfo(Request.Method.POST,"/sc/front/file.json");
    URLInfo creatRepair = new URLInfo(Request.Method.POST,"/energy/mobile/Workorder/addWorkorder.json");
    URLInfo queryWorkList = new URLInfo(Request.Method.POST,"/energy/mobile/Workorder/queryWorkorder.json");
    URLInfo manageWork = new URLInfo(Request.Method.POST,"/energy/mobile/Workorder/updateWorkorder.json");
    URLInfo submitWork = new URLInfo(Request.Method.POST,"/energy/mobile/Workorder/updateWorkorderToKO.json");
    URLInfo waterAddWork = new URLInfo(Request.Method.POST,"/energy/mobile/Workorder/addWorkorder.json");
    /**
     * 4.2.3 查询账户信息  编辑
     上次修改：罗林 于 2016-05-19 09:26:35
     说明：通过access_token获取用户信息。
     URL: /sc_sso/account/access_token/{access_token}.json
     Method:GET
     字段	类型	是否必须	说明
     access_token String access_token，获取账户信息。
     */
    URLInfo getAccountInfo = new URLInfo(Request.Method.GET,"/sc_sso/account/access_token/{access_token}.json");
    URLInfo getAccount = new URLInfo(Request.Method.GET,"/sc_sso/account/access_token/{access_token}.json");

}
